/*
 * @Author: your name
 * @Date: 2021-08-27 14:57:03
 * @LastEditTime: 2021-08-29 17:02:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day05\1.js
 */

var x = this; //等价于var x={}
console.log(this); //{}

var a = {
    firstName: 'hhh',
    lastName: 'mmm',
    foo: function() {
        return this.firstName + " " + this.lastName;
    }
};
var b = a.foo();
console.log(b);

function hhh() {
    return 111;
}
hhh(); //这样写return不会输出值，只是把值返回给函数
console.log(hhh());